package com.mall507.fivepeaks.activity.mine;

import android.content.Intent;
import android.view.View;
import android.widget.LinearLayout;

import com.alibaba.android.arouter.facade.annotation.Route;
import com.alibaba.android.arouter.launcher.ARouter;
import com.hzh.frame.comn.annotation.ViewInject;
import com.hzh.frame.ui.activity.BaseUI;
import com.hzh.frame.widget.xwebview.XWebViewActivity;
import com.mall507.comn.model.User;
import com.mall507.comn.tools.UserTools;
import com.mall507.fivepeaks.R;
import com.mall507.fivepeaks.widget.imageview.CircleImageView;

@Route(path = "/mine/OnWeUI")
public class OnWeUI extends BaseUI {
    @ViewInject(R.id.userAgreement) LinearLayout userAgreement;
    @ViewInject(R.id.privacy) LinearLayout privacy;
    
    @Override
    protected void onCreateBase() {
        setContentView(R.layout.ui_mine_onwe);
        getTitleView().setContent("关于我们");
        final Intent in1 = new Intent(OnWeUI.this, XWebViewActivity.class);
        in1.putExtra("url", "http://admin.yichangyouchuang.cn/api/desc/agreement");
        final Intent in2 = new Intent(OnWeUI.this, XWebViewActivity.class);
        in2.putExtra("url", "http://admin.yichangyouchuang.cn/api/desc/privacy");
        userAgreement.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                startActivity(in1);
            }
        });
        privacy.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                startActivity(in2);
            }
        });
    }

}
